import createAxios from '../utils/axios'
// 根据分类ID获取一级分类属性
export const getClassifyAttributes = (id: string) => {
    return createAxios({
        url: `/shop/classify/getAttributes?classify_id=${id}`,
        method: 'GET',
    }, 'API1', {loading: true});
}
//搜索商品
export const getClassifyIndex = (params: any) => {
    return createAxios({
        url: `/shop/goods?page=${params.page}&page_size=${params.page_size}&name=${params.name}`,
        method: 'GET',
    }, 'API1', {loading: true});
}
